/*
 * MaterialGroup.hpp
 *
 *  Created on: Mar 19, 2014
 *      Author: knuke
 */

#ifndef MATERIALGROUP_HPP_
#define MATERIALGROUP_HPP_

#include <vector>
#include "Triangle.hpp"
#include "Material.hpp"

namespace gengine
{
  class Mesh;
  class MaterialGroup
  {
  public:
    MaterialGroup(const Mesh* mesh);
    virtual ~MaterialGroup();

    const Material* getMaterial() const;
    void setMaterial(const Material* material);
    const Mesh* getMesh() const;
    void setMesh(const Mesh* mesh);

  private:
    const Mesh* mesh_;
    const Material* material_;
    std::vector<Triangle> triangles_;
  };

} /* namespace gengine */

#endif /* MATERIALGROUP_HPP_ */
